<?php
$con = mysql_connect("localhost","root","");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("loc_fil", $con);

$sql="INSERT INTO temples (T_id, T_Name, T_City, T_State, T_Location,loc_latitude,loc_longitude)
VALUES 
('$_POST[T_id]','$_POST[T_Name]','$_POST[T_City]','$_POST[T_State]','$_POST[T_Location]','$_POST[loc_latitude]','$_POST[loc_longitude]' )";

if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "1 record added";

mysql_close($con)
?>
